<?php
require_once 'classdb.php';
class seo_tour extends db {    
    public function seo($view,$id=-1,$lang)
    {
        $array= array();
        if($view=='tuyendung')
        {            
           $array['title']='Thông tin tuyển dụng';
           $array['desc']='Thông tin tuyển dụng - Thy Nguyet Travel';
           $array['key']='Thông tin tuyển dụng - Thy Nguyet Travel';
           return $array;
        }
        else if($view=='tour_details')
        {
            $id=$_GET['tour'];
            $seo=$this->get_by_thutu_db('tin',$id,1);
            $array['title']=$seo['ten_'.$lang];
          $array['desc']=$seo['ten_'.$lang];
           $array['key']=$seo['ten_'.$lang];
           return $array;
        }
        else if($view=='tour_root')
        {
            $seo=$this->get_by_thutu_db('tin_root',$id,1);
            $array['title']=$seo['ten_'.$lang];
          $array['desc']=$seo['ten_'.$lang];
           $array['key']=$seo['ten_'.$lang];
           return $array;
        }
        else if($view=='tour_cap1')
        {
            $seo=$this->get_by_thutu_db('tin_theloai',$id,1);
            $array['title']=$seo['ten_'.$lang];
          $array['desc']=$seo['ten_'.$lang];
           $array['key']=$seo['ten_'.$lang];
           return $array;
        }
         else if($view=='tour_cap2')
        {
            $seo=$this->get_by_thutu_db('tin_loai',$id,1);
            $array['title']=$seo['ten_'.$lang];
          $array['desc']=$seo['ten_'.$lang];
           $array['key']=$seo['ten_'.$lang];
           return $array;
        }
        else if($view=='tintuc')
        {
            $seo=$this->get_by_thutu_db('tin_tonghop',$id,1);
            $array['title']='Tin tuc';
          $array['desc']='Tin tuc';
           $array['key']='Tin tuc';
           return $array;
        }
        else if($view=='tin_chitiet')
        {
            $seo=$this->get_by_thutu_db('tin_tonghop',$id,1);
            $array['title']=$seo['ten_'.$lang];
            $array['desc']=$seo['ten_'.$lang];
            $array['key']=$seo['ten_'.$lang];
            return $array;
        }
        else if($view=='tin_chitiet')
        {
            $seo=$this->get_by_thutu_db('tin_tonghop',$id,1);
            $array['title']=$seo['ten_'.$lang];
            $array['desc']=$seo['ten_'.$lang];
            $array['key']=$seo['ten_'.$lang];
            return $array;
        }
         else if($view=='lienhe')
        {
            $seo=$this->get_by_thutu_db('tin_tonghop',$id,1);
            $array['title']='Lien he';
            $array['desc']='Lien he';
            $array['key']='Lien he';
            return $array;
        }
        else{
            $array['title']='ThyNguyet Travel';
           $array['desc']=' Thy Nguyet Travel';
           $array['key']='Thy Nguyet Travel';
           return $array;

        }
    }
}
?>
